package org.jctc.els.modules.biz.mapper.message;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.jctc.els.modules.biz.entity.message.MessageWaitPull;
import org.jctc.els.modules.biz.entity.user.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 待拉取的消息表 Mapper 接口
 * </p>
 *
 * @author lyh
 * @since 2021-02-26
 */
@Mapper
public interface MessageWaitPullMapper extends BaseMapper<MessageWaitPull> {

    int insertList(@Param("list") List<MessageWaitPull> userList);

    List<User> selectUsersByMessageId(@Param("id") Long id);

    int removeByMessageId(@Param("id") Long id);
}
